package com.weepal.pavement.mqtt.demo.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weepal.pavement.mqtt.demo.config.dataSource.DataSourceConfig;
import com.weepal.pavement.mqtt.demo.config.dataSource.TargetSource;
import com.weepal.pavement.mqtt.demo.mapper.DeviceFieldMapper;
import com.weepal.pavement.mqtt.demo.vo.DeviceField;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@TargetSource(DataSourceConfig.Constant.MASTER)
public class DeviceFieldService extends ServiceImpl<DeviceFieldMapper, DeviceField> {

    public List<DeviceField> getAll() {
        List<DeviceField> deviceFields = baseMapper.getAll();
        return deviceFields;
    }
}
